﻿
@{
    Layout = null;

    var dictLeiXing = new Dictionary<int, string>();
    dictLeiXing.Add(0, "超级用户");
    dictLeiXing.Add(1, "管理用户");
    dictLeiXing.Add(2, "代理用户");
    dictLeiXing.Add(3, "个人用户");
}
@model ESMAM.Model.SYS.sys_user

<div class="bjui-pageContent">
    <form id="form_ChangePwd" action="/User/UserUpsert" data-toggle="validate" method="post" data-close-current="true">
        <input type="hidden" name="id" value="@Model.id" id="dia_username">
        <div class="bjui-row col-2">
            <label class="row-label">@Html.CurLang("登录名")</label>
            <div class="row-input">
                @Model.loginname
            </div>

            <label class="row-label">@Html.CurLang("用户类型")</label>
            <div class="row-input">
                @Html.CurLang(dictLeiXing[Model.role])
            </div>

            <label class="row-label">@Html.CurLang("昵称")</label>
            <div class="row-input">
                <input type="text" name="nickname" id="nickname" value="@Model.nickname">
            </div>

            <label class="row-label">@Html.CurLang("真实姓名")</label>
            <div class="row-input">
                <input type="text" name="REALNAME" id="REALNAME" value="@Model.realname">
            </div>

            <label class="row-label">@Html.CurLang("生日")</label>
            <div class="row-input">
                <input type="text" name="birthday" data-toggle="datepicker" data-pattern="yyyy-MM-dd" id="birthday" value='@Model.birthday.Value.ToString("yyyy-MM-dd")' />
            </div>


            <label class="row-label">@Html.CurLang("使用语言")</label>
            <div class="row-input">
                <select name="ShiYYY" data-toggle="selectpicker" data-rule="required">
                    <option value="en" @if (Model.shiyyy.ToString() == "en") { @MvcHtmlString.Create("selected='selected' ") }>English</option>
                    <option value="zh" @if (Model.shiyyy.ToString() == "zh") { @MvcHtmlString.Create("selected='selected' ") }>简体中文</option>
                    @*<option value="kor" @if (Model.shiyyy.ToString()=="kor") { @MvcHtmlString.Create("selected='selected' ") }>한국어</option>
                <option value="jp" @if (Model.shiyyy.ToString()=="jp") { @MvcHtmlString.Create("selected='selected' ") }>日本語</option>*@
                    <option value="spa" @if (Model.shiyyy.ToString() == "espan") { @MvcHtmlString.Create("selected='selected' ") }>Español</option>
                </select>
            </div>

            <label class="row-label">@Html.CurLang("个人电话")</label>
            <div class="row-input">
                <input type="text" name="mobile_phone" id="mobile_phone" value="@Model.mobile_phone">
            </div>

            <label class="row-label">@Html.CurLang("工作电话")</label>
            <div class="row-input">
                <input type="text" name="office_phone" id="office_phone" value="@Model.office_phone">
            </div>

            <label class="row-label">@Html.CurLang("邮箱")</label>
            <div class="row-input">
                <input type="text" name="email" id="email" value="@Model.email">
            </div>
        </div>
</form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">@Html.CurLang("关闭")</button></li>
        <li><button type="submit" id="btnChangePwdSave" class="btn-default" data-icon="check">@Html.CurLang("确认修改")</button></li>
    </ul>
</div>